<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>办公室：添加导游证件</title>
	<jsp:include page="/com/common/_js.jsp"></jsp:include>
	<script type="text/javascript">
	$(document).ready(function() {
		$("#certificateAction_issueDate").datepicker({
			changeMonth: true,
			changeYear: true
		});
		
		$("#certificateAction_ctfDate").datepicker({
			changeMonth: true,
			changeYear: true
		});
		
		$("#certificateAction_endorseDate").datepicker({
			changeMonth: true,
			changeYear: true
		});
		
	});
	
	$(document).ready(function() {
		  $('#file_upload').uploadify({
		    'uploader'  : 'uploadify/uploadify.swf',
		    'script'    : 'uploadify/uploadify.php',
		    'cancelImg' : 'uploadify/cancel.png',
		    'folder'    : '/uploads',
		    'auto'      : true
		  });
		});

	</script>
</head>
<body>
	<div id="web">
		<div id="head"></div>
		<div id="body">
			<div class="container-fluid">
			    <div class="row-fluid">
				    <div class="span2">
				    <jsp:include page="_left.jsp"></jsp:include>
				    </div>
				    <div class="span10">
				    <div class="left-bar"><i class="icon-flag icon-white"></i> 添加证件信息</div>
				 		<s:form action="certificateAction!insertCertificate.jspa" namespace="/officer">
							<s:hidden name="guideId" value="%{guideId}"></s:hidden>
							<div class="field">
								<label for="certificateAction_cardId">证件</label>
								<s:select name="cardId" list="cardList" listKey="cardId" listValue="cardName"></s:select>
							</div>
							<div class="field">
								<label for="certificateAction_enName">英文名</label>
								<input type="text" id="certificateAction_enName" name="enName">
							</div>
							<div class="field">
								<label for="certificateAction_ctfNum">证件号</label>
								<input type="text" id="certificateAction_ctfNum" name="ctfNum">
							</div>
							<div class="field">
								<label for="certificateAction_ctfSort">证件类别</label>
								<input type="text" id="certificateAction_ctfSort" name="ctfSort">
		
							</div>
							<div class="field">
								<label for="certificateAction_issueDate">颁发日期</label>
								<input type="text" id="certificateAction_issueDate" name="issueDate">
							</div>
							<div class="field">
								<label for="certificateAction_ctfDate">有效日期</label>
								<input type="text" id="certificateAction_ctfDate" name="ctfDate">
							</div>
							<div class="field">
								<label for="certificateAction_endorseDate">签注有效期</label>
								<input type="text" id="certificateAction_endorseDate" name="endorseDate">
							</div>
							<div class="field">
								<label for="certificateAction_endorseNum">签注次数</label>
								<input type="text" id="certificateAction_endorseNum" name="endorseNum" value="0">
							</div>
							<div class="field">
								<label for="certificateAction_warnDays">有效期提醒天数</label>
								<input type="text" id="certificateAction_warnDays" name="warnDays" value="0">
							</div>
							<div class="field">
								<label for="certificateAction_page">空白页数</label>
								<input type="text" id="certificateAction_page" name="page" value="0">
							</div>
							<div class="button">
								<s:submit value="提交"></s:submit>
							</div>
						</s:form>
				    </div>
			    </div>
			</div>
		</div>
		<div id="foot"></div>
	</div>
</body>
</html>